From 41b44225e7733314b45729ff80a9ec0b33a75636 Mon Sep 17 00:00:00 2001 From: rien333 Date: Thu, 17 May 2018 11:34:35 +0100 Subject: [PATCH] Fix FTBFS with FFmpeg 4.0 Origin: backport, https://github.com/cmus/cmus/pull/793 Bug-Debian: https://bugs.debian.org/888384 Bug-Debian: https://bugs.debian.org/888384 Gbp-Pq: Name 12-ffmpeg-4.0.patch --- ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 62c3903..69af067 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -252,8 +252,8 @@ static int ffmpeg_open(struct input_plugin_data *ip_data) break; } - if (codec->capabilities & CODEC_CAP_TRUNCATED) - cc->flags |= CODEC_FLAG_TRUNCATED; + if (codec->capabilities & AV_CODEC_CAP_TRUNCATED) + cc->flags |= AV_CODEC_FLAG_TRUNCATED; #if (LIBAVCODEC_VERSION_INT < ((53<<16)+(8<<8)+0)) if (avcodec_open(cc, codec) < 0) { -- 2.30.2